Skip to main content

TsgDXFLayer

Unit: DXFConv

Description

This class defines an item of the LAYER table of the DXF file.

Note

A layer assignment is just an attribute of a DXF entity, it’s not an entity container, the entities are stored in layouts and blocks and the assigned layer is not important for that.
Deleting a layer entry does not delete the entities which reference this layer!

Syntax

TsgDXFLayer = class(TsgDXFPenTableItem)

Properties

PropertiesDescription
FlagsThe property determines features of the layer, bit coded values, may be combined.
FrozenThe property defines whether layer frozen or thawed.
IsFrozenByViewPortThe property defines whether layer frozen or thawedSet true to make layer frozen by default in new viewports.
IsPlottingThe property defines whether to plot the layer or not.
LinesThe property points to the TsgLines object which contains information about this layer's line type.
LineTypeThe property sets or get layers line type as the TsgDXFLineType entity.
UsedThe property contains True if given layer contains the primitives;
Derived from TsgDXFPenTableItemDescription
FlagsThe property sets and gets standard flag values (bit-coded value)
NameThe name of the type of line or layer value of 2 code of the section from DXF file of a table LTYPE or LAYERS.
Derived from TsgDXFPenEntityDescription
PenThe property for reaching the TPen object, used for drawing.
Derived from TsgDXFEntityDescription
BoxThe property determines the 3d box embraced the entity.
ColorThe property gets or sets entity color.
ColorCADThe property gets or sets a color for drawing entities.
ComplexThe property determines whether a entity is populated with child entities.
ConverterThe property returns the TsgDXFConverter class object.
CountThe property indicates the total number of child entities.
EntitiesThe property lists all child entities.
EntTypeThe property indicates type of an entity.
HandleThe property is used for finding entity links.
LayerThe property points to layer, containing given primitive if this layer is given.
LineTypeThe property sets and gets line type for an entity.
LineTypeScaleThe property sets and gets the Linetype scale.
LineWeightThe property sets or gets line weight in millimeters.
PaperSpaceThe property indicates Model Space and Paper Space entity segregation.
SrcEndThe property indicates end position of the entity description in the source CAD file.
SrcStartThe property indicates start position of the entity description in the source CAD file.
VisibilityThe property sets and gets entities visibility.
VisibleThe property determines whether the component appears onscreen.

Methods

MethodsDescription
CreateCreates internal objects after creating this object.
LoadedThe method accomplishes necessary changes after using the following layer's properties.
Derived from TsgDXFPenTableItemDescription
AssignEntityThe method copies properties of source entity to current entity.
EntNameThe property gets the name of an entity.
Derived from TsgDXFPenEntityDescription
DestroyFrees up internal the TPen object before freeing this instance.
SetColorThe method changes the color used for drawing.
Derived from TsgDXFEntityDescription
AddEntityThe method adds a new child entity.
CloneThe method copies properties of source entity to current entity (include Handle).
DrawThe method generates the OnDraw event.
GetBoxPointsThe method is used in drawing cycle for fast checking whether the entity must be drawn.
GetThicknessThe method returns entity's thickness.
SetLTypeThe method sets line type of the entity.
SetLWeightThe method sets line weight width of the entity.

Events

Derived from TsgDXFEntityDescription
OnDrawThe event occurs when the Draw method is called.